//
//  MBBaseTableViewCell.h
//  MemberBusiness-ios
//
//  Created by cherry pu on 2018/4/19.
//  Copyright © 2018年 zhangXin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBBaseTableCellViewModel.h"

@interface MBBaseTableViewCell : UITableViewCell
@property (nonatomic,strong,readonly) MBBaseTableCellViewModel *viewModel;

/**
 cell的初始化方法
 通过cellViewModel来创建一个cell 调用setupdata来绑定数据
 @param tableView tableView
 @param viewModel cellViewModel
 @return cell
 */
+ (instancetype)cellForTableView:(UITableView *)tableView viewModel:(MBBaseTableCellViewModel *)viewModel;

- (void)setupLayout;
- (void)setupBinding;
- (void)setupData;

// 用来计算高度
+(NSNumber*)calculateRowHeightWithViewModel:(MBBaseTableCellViewModel *)viewModel;

@end
